﻿<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="ucMiProgramacion.ascx.vb"
    Inherits="SIAVU.Presentacion.ucMiProgramacion" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxScheduler.v10.1, Version=10.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxScheduler" TagPrefix="dxwschs" %>
<%@ Register Assembly="DevExpress.XtraScheduler.v10.1.Core, Version=10.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.XtraScheduler" TagPrefix="cc1" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Src="ucCustomAppointmentTemplate.ascx" TagName="ucCustomAppointmentTemplate"
    TagPrefix="uc1" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxObjectContainer" TagPrefix="dx" %>
<div>
    <dxwschs:ASPxScheduler ID="scheMiProgramacion" runat="server" ActiveViewType="Timeline"
        AppointmentDataSourceID="odsActividades" Start="2010-08-01" GroupType="Resource"
        ClientInstanceName="scheMiProgramacion">
        <OptionsToolTips ShowAppointmentDragToolTip="False" ShowSelectionToolTip="False" AppointmentToolTipCornerType="None" />
        <Styles>
            <Appointment Font-Bold="True" ForeColor="White">
            </Appointment>
        </Styles>
        <OptionsCustomization AllowAppointmentMultiSelect="False" AllowAppointmentCopy="None"
            AllowAppointmentCreate="None" AllowAppointmentDrag="None" AllowAppointmentDragBetweenResources="None"
            AllowAppointmentEdit="None" AllowAppointmentResize="None" AllowDisplayAppointmentForm="Always"
            AllowInplaceEditor="None" />
        <OptionsForms AppointmentFormVisibility="PopupWindow" 
            AppointmentFormTemplateUrl="/Presentacion/Controles/ucMotivoReProgramacion.ascx" />
        <OptionsBehavior ShowTimeMarker="False" ShowViewNavigator="False" ShowViewVisibleInterval="True"
            ShowViewSelector="False" RecurrentAppointmentDeleteAction="Cancel" RecurrentAppointmentEditAction="Cancel" />

        <ResourceNavigator Visibility="Never" />
        <Storage Appointments-AutoReload="False" Resources-AutoReload="True">
            <Appointments>
                <Mappings Description="InformacionCompleta" End="FechaFin" Start="FechaInicio" AppointmentId="ActividadID"
                    Label="TipoActividadID" Location="Motivo" />
                <labels>
                    <cc1:AppointmentLabel Color="Window" DisplayName="None" 
                        MenuCaption="&amp;None" />
                    <cc1:AppointmentLabel Color="32, 64, 124" DisplayName="Posta" 
                        MenuCaption="&amp;Posta" />
                    <cc1:AppointmentLabel DisplayName="Dia Libre" MenuCaption="&amp;Dia Libre" />
                    <cc1:AppointmentLabel Color="144, 201, 72" DisplayName="Dia Sin Programar" MenuCaption="&amp;Dia Sin Programar" />
                    <cc1:AppointmentLabel Color="243, 228, 199" DisplayName="Vacation" 
                        MenuCaption="&amp;Vacation" />
                    <cc1:AppointmentLabel Color="244, 206, 147" DisplayName="Must Attend" 
                        MenuCaption="Must &amp;Attend" />
                    <cc1:AppointmentLabel Color="199, 244, 255" DisplayName="Travel Required" 
                        MenuCaption="&amp;Travel Required" />
                    <cc1:AppointmentLabel Color="207, 219, 152" DisplayName="Needs Preparation" 
                        MenuCaption="&amp;Needs Preparation" />
                    <cc1:AppointmentLabel Color="224, 207, 233" DisplayName="Birthday" 
                        MenuCaption="&amp;Birthday" />
                    <cc1:AppointmentLabel Color="141, 233, 223" DisplayName="Anniversary" 
                        MenuCaption="&amp;Anniversary" />
                    <cc1:AppointmentLabel Color="255, 247, 165" DisplayName="Phone Call" 
                        MenuCaption="Phone &amp;Call" />
                </labels>
            </Appointments>
        </Storage>
        <OptionsView NavigationButtons-Visibility="Never" />
        <OptionsToolTips AppointmentTooltipUrl="/Presentacion/Controles/ucCustomAppointmentToolTipMiProgramacion.ascx" 
        AppointmentToolTipCornerType="None" />
        <Views>
            <DayView Enabled="False">
                <TimeRulers>
                    <cc1:TimeRuler></cc1:TimeRuler>
                </TimeRulers>
            </DayView>
            <WorkWeekView Enabled="False">
                <TimeRulers>
                    <cc1:TimeRuler></cc1:TimeRuler>
                </TimeRulers>
            </WorkWeekView>
            <WeekView Enabled="False">
            </WeekView>
            <MonthView Enabled="False">
            </MonthView>
            <TimelineView IntervalCount="31">
                <AppointmentDisplayOptions StartTimeVisibility="Never" />
                <AppointmentDisplayOptions EndTimeVisibility="Never" StartTimeVisibility="Never"
                    AppointmentHeight="30" />
                <Scales>
                    <cc1:TimeScaleYear Enabled="False" />
                    <cc1:TimeScaleQuarter Enabled="False" Visible="False" />
                    <cc1:TimeScaleMonth Enabled="False" Visible="False" />
                    <cc1:TimeScaleWeek Enabled="False" Visible="False" />
                    <cc1:TimeScaleDay />
                    <cc1:TimeScaleHour Enabled="False" Visible="False" />
                    <cc1:TimeScaleFixedInterval Enabled="False" Visible="False" />
                </Scales>
                <TimelineViewStyles VerticalResourceHeader-Width="75px">
                    <TimelineCellBody Height="45px">
                    </TimelineCellBody>
                    <VerticalResourceHeader Width="75px">
                    </VerticalResourceHeader>
                </TimelineViewStyles>
            </TimelineView>
        </Views>
    </dxwschs:ASPxScheduler>
</div>
<asp:ObjectDataSource ID="odsActividades" runat="server" SelectMethod="getActividadesProgramacionByPeriodo"
    TypeName="SIAVU.Dominio.Usuario" 
    DeleteMethod="deleteActividadEnPreProgramacion2" 
    UpdateMethod="updateActividadEnPreProgramacion">
    <DeleteParameters>
        <asp:Parameter Name="ActividadID" Type="Int64" />
    </DeleteParameters>
    <UpdateParameters>
        <asp:Parameter Name="ActividadID" Type="Int64" />
        <asp:Parameter Name="FechaInicio" Type="DateTime" />
        <asp:Parameter Name="FechaFin" Type="DateTime" />
        <asp:Parameter Name="Motivo" Type="String" />
        <asp:Parameter Name="TipoActividadID" Type="Int32" />
        <asp:Parameter Name="InformacionCompleta" Type="String" />
    </UpdateParameters>
    <SelectParameters>
        <asp:SessionParameter Name="UsuarioID" SessionField="UsuarioIDucMiProgramacion" Type="Int64" />
        <asp:ControlParameter ControlID="Periodo" Name="Periodo" PropertyName="SelectedDate"
            Type="DateTime" />
        <asp:ControlParameter ControlID="lTipoProgramacion" Name="TipoProgramacion" PropertyName="Text"
            Type="Object" />
        <asp:Parameter Name="objActividades" Type="Object" />
    </SelectParameters>
</asp:ObjectDataSource>
<asp:ObjectDataSource ID="odsResourseVerHistorial" runat="server" 
    SelectMethod="GetResourceVerHistorial" 
    TypeName="SIAVU.Dominio.EntityManager">
     <SelectParameters>
        <asp:SessionParameter Name="UsuarioID" SessionField="UsuarioIDucMiProgramacion" Type="Int64" />
        <asp:ControlParameter ControlID="Periodo" Name="Periodo" PropertyName="SelectedDate" Type="DateTime" />
    </SelectParameters>
</asp:ObjectDataSource>
<asp:Calendar ID="Periodo" runat="server" Visible="False"></asp:Calendar>
<asp:Label ID="lTipoProgramacion" runat="server" Text="TipoProgramacion" Visible="False"></asp:Label>

